// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
// import App from './App'
import frame from './frame'
import VueRouter from 'vue-router'
import routeConfig from './router'
import store from './store'
import axios from 'axios'
// import Element from 'element-ui'
import {Button, Form, FormItem, Input, Message} from 'element-ui'
// panel组件
import ImpPannel from './components/panel'

Vue.config.productionTip = false
Vue.use(VueRouter)
Vue.prototype.$http = axios
Vue.axios = axios
Vue.component(Button.name, Button)
Vue.component(Form.name, Form)
Vue.component(FormItem.name, FormItem)
Vue.component(Input.name, Input)
Vue.prototype.$message = Message
// Vue.component(Select.name, Select)
// Vue.use(Element)
// 挂载pannel组件
Vue.component(ImpPannel.name, ImpPannel)

//  定义路由
const router = new VueRouter({
  // mode: 'history',
  routes: routeConfig
})

/* eslint-disable no-new */
new Vue({
  el: '#root',
  store,
  router,
  // components: { App },
  render: h => h(frame)
})
